import 'package:flutter/material.dart';

class MyApp9 extends StatelessWidget {
  const MyApp9({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      //导航条
      appBar: AppBar(
        title: const Text(
          'Row组件',
          style: TextStyle(color: Colors.white, fontSize: 20),
        ),
        backgroundColor: Colors.pink,
        centerTitle: true,
      ),
      body: Center(
        child: Container(
          margin: EdgeInsets.only(top: 30),
          width: MediaQuery.of(context).size.width,
          height: 120,
          color: Colors.pink[100],
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Image.network(
                'https://img2.baidu.com/it/u=897477102,83240605&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500',
              ),
              Text('茶水分离杯耐热隔热玻璃杯', style: TextStyle(fontSize: 20)),
            ],
          ),
        ),
      ),
    );
  }
}
